﻿using Entities;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace Bridges
{
    [ClassInterface(ClassInterfaceType.None)]
    [ComVisible(true)]
    public class Cat
    {
        public async Task<string> Say(string data) {
            UserEntity user = JsonConvert.DeserializeObject<UserEntity>(data);
            return JsonConvert.SerializeObject(new { 
                Name = user.Name,
                Age = user.Age,
                Height = 18
            });
        }
    }
}
